# 开头字符
s = "hello world"
print(s.startswith("he"))

# 结尾
print(s.endswith("d"))

